home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / cpprfs.z / cpprfs
Encoding:
Text File  |  2002-10-03  |  5.2 KB  |  133 lines

  1.  
  2.  
  3.  
  4. CCCCPPPPPPPPRRRRFFFFSSSS((((3333SSSS))))                                                          CCCCPPPPPPPPRRRRFFFFSSSS((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      CPPRFS - improve the computed solution to a system of linear equations
  10.      when the coefficient matrix is Hermitian positive definite and packed,
  11.      and provides error bounds and backward error estimates for the solution
  12.  
  13. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.      SUBROUTINE CPPRFS( UPLO, N, NRHS, AP, AFP, B, LDB, X, LDX, FERR, BERR,
  15.                         WORK, RWORK, INFO )
  16.  
  17.          CHARACTER      UPLO
  18.  
  19.          INTEGER        INFO, LDB, LDX, N, NRHS
  20.  
  21.          REAL           BERR( * ), FERR( * ), RWORK( * )
  22.  
  23.          COMPLEX        AFP( * ), AP( * ), B( LDB, * ), WORK( * ), X( LDX, * )
  24.  
  25. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  26.      These routines are part of the SCSL Scientific Library and can be loaded
  27.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  28.      directs the linker to use the multi-processor version of the library.
  29.  
  30.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  31.      4 bytes (32 bits). Another version of SCSL is available in which integers
  32.      are 8 bytes (64 bits).  This version allows the user access to larger
  33.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  34.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  35.      only one of the two versions; 4-byte integer and 8-byte integer library
  36.      calls cannot be mixed.
  37.  
  38. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  39.      CPPRFS improves the computed solution to a system of linear equations
  40.      when the coefficient matrix is Hermitian positive definite and packed,
  41.      and provides error bounds and backward error estimates for the solution.
  42.  
  43. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  44.      UPLO    (input) CHARACTER*1
  45.              = 'U':  Upper triangle of A is stored;
  46.              = 'L':  Lower triangle of A is stored.
  47.  
  48.      N       (input) INTEGER
  49.              The order of the matrix A.  N >= 0.
  50.  
  51.      NRHS    (input) INTEGER
  52.              The number of right hand sides, i.e., the number of columns of
  53.              the matrices B and X.  NRHS >= 0.
  54.  
  55.      AP      (input) COMPLEX array, dimension (N*(N+1)/2)
  56.              The upper or lower triangle of the Hermitian matrix A, packed
  57.              columnwise in a linear array.  The j-th column of A is stored in
  58.              the array AP as follows:  if UPLO = 'U', AP(i + (j-1)*j/2) =
  59.              A(i,j) for 1<=i<=j; if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) =
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCPPPPPPPPRRRRFFFFSSSS((((3333SSSS))))                                                          CCCCPPPPPPPPRRRRFFFFSSSS((((3333SSSS))))
  71.  
  72.  
  73.  
  74.              A(i,j) for j<=i<=n.
  75.  
  76.      AFP     (input) COMPLEX array, dimension (N*(N+1)/2)
  77.              The triangular factor U or L from the Cholesky factorization A =
  78.              U**H*U or A = L*L**H, as computed by SPPTRF/CPPTRF, packed
  79.              columnwise in a linear array in the same format as A (see AP).
  80.  
  81.      B       (input) COMPLEX array, dimension (LDB,NRHS)
  82.              The right hand side matrix B.
  83.  
  84.      LDB     (input) INTEGER
  85.              The leading dimension of the array B.  LDB >= max(1,N).
  86.  
  87.      X       (input/output) COMPLEX array, dimension (LDX,NRHS)
  88.              On entry, the solution matrix X, as computed by CPPTRS.  On exit,
  89.              the improved solution matrix X.
  90.  
  91.      LDX     (input) INTEGER
  92.              The leading dimension of the array X.  LDX >= max(1,N).
  93.  
  94.      FERR    (output) REAL array, dimension (NRHS)
  95.              The estimated forward error bound for each solution vector X(j)
  96.              (the j-th column of the solution matrix X).  If XTRUE is the true
  97.              solution corresponding to X(j), FERR(j) is an estimated upper
  98.              bound for the magnitude of the largest element in (X(j) - XTRUE)
  99.              divided by the magnitude of the largest element in X(j).  The
  100.              estimate is as reliable as the estimate for RCOND, and is almost
  101.              always a slight overestimate of the true error.
  102.  
  103.      BERR    (output) REAL array, dimension (NRHS)
  104.              The componentwise relative backward error of each solution vector
  105.              X(j) (i.e., the smallest relative change in any element of A or B
  106.              that makes X(j) an exact solution).
  107.  
  108.      WORK    (workspace) COMPLEX array, dimension (2*N)
  109.  
  110.      RWORK   (workspace) REAL array, dimension (N)
  111.  
  112.      INFO    (output) INTEGER
  113.              = 0:  successful exit
  114.              < 0:  if INFO = -i, the i-th argument had an illegal value
  115.  
  116. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  117.      ITMAX is the maximum number of steps of iterative refinement.
  118.  
  119. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  120.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  121.  
  122.      This man page is available only online.
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.